home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / bbsdoors / usbdor52.zip / SEND.BAT < prev    next >
DOS Batch File  |  1993-04-09  |  2KB  |  58 lines

  1. echo off
  2. rem ------------------------------------------------------------------------
  3. rem USBBSDOR passes these parameters to SEND.BAT
  4. rem %1 = connect baud rate
  5. rem %2 = com or fossil port
  6. rem %3 = file name to send
  7. rem %4 = protocol choice (letter)
  8. rem %5 = base address for com ports other than 1 or 2 (DSZ portx option).
  9. rem %6 = IRQ for com ports other than 1 or 2 (DSZ portx option).
  10. rem %7 = locked DTE baud rate
  11. rem ------------------------------------------------------------------------
  12. rem  If using non-standard COM ports (COM ports other than 1 or 2), replace
  13. rem  port %2 in each line below with portx %5,%6 (note comma between %5,%6).
  14. rem ------------------------------------------------------------------------
  15. rem  If you wish to use the GSZ (graphical equivalent to DSZ) protocol,
  16. rem  simply replace each occurrence of DSZ below with GSZ and refer to the
  17. rem  USBBSDOR.DOC for configuring PROTOCOL.DAT.  Also place the following
  18. rem  SET command in your BBS batch file:  SET GSZWINDOW=21
  19. rem ------------------------------------------------------------------------
  20. rem  Note the difference in parameters %1 and %7.  %7 should be used when
  21. rem  the locked baud info is needed, typically with FOSSIL protocols.
  22. rem ------------------------------------------------------------------------
  23. if "%4" == "X" goto :Xmodem
  24. if "%4" == "C" goto :Xmodem
  25. if "%4" == "O" goto :1Kxmodem
  26. if "%4" == "F" goto :1KxmodemG
  27. if "%4" == "Y" goto :Ymodem
  28. if "%4" == "G" goto :YmodemG
  29. if "%4" == "Z" goto :Zmodem
  30. goto :end
  31.  
  32. :Xmodem
  33. DSZ port %2 pB4096 sx %3
  34. goto :end
  35.  
  36. :1Kxmodem
  37. DSZ port %2 pB4096 sx -k %3
  38. goto :end
  39.  
  40. :1KxmodemG
  41. DSZ port %2 pB4096 sx -k -g %3
  42. goto :end
  43.  
  44. :Ymodem
  45. DSZ port %2 pB4096 sb -k %3
  46. goto :end
  47.  
  48. :YmodemG
  49. DSZ port %2 pB4096 sb -k %3
  50. goto :end
  51.  
  52. :Zmodem
  53. DSZ port %2 pB4096 sz -m %3
  54.  
  55.  
  56. :end
  57.  
  58.